const state = {
	sidebar: {
		// true  收起折叠
		// false 展开折叠
		opened: false
	},
	isFullScreen: false,
	theme: 'navy-blue'
}

const mutations = {
	// side导航栏折叠开关
	TOGGLE_SIDEBAR(state) {
		state.sidebar.opened = !state.sidebar.opened
	},
	OPEN_FULLSCREEN(state) {
		state.isFullScreen = true
	},
	EXIT_FULLSCREEN(state) {
		state.isFullScreen = false
	},
	UPDATE_THEME(state, data) {
		state.theme = data
	}
}

const actions = {

}


export default {
	namespaced: true,
	state,
	mutations,
	actions
}